package com.sui.bigdata.rtcadmin.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author yanjiantong
 * @Date 2019/12/30 14:37
 * @Description
 * @email jiantong_yan@sui.com
 */

@Data
@Accessors(chain = true)
public class KafkaTopicDto {

    @JSONField(name = "data")
    private String data;

    public static KafkaTopicDto buildKafkaTopicDto(String data){
        if (data == null){
            return null;
        }
        return new KafkaTopicDto().setData(data);
    }

}
